﻿using BestPrice.Common;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BestPrice.App.ServiceCommunicator
{
    public class BestPriceServiceCommunicator
    {
        public async static Task<ObservableCollection<Category>> GetCategoryList()
        {
            BestPrice.App.ServiceCommunicator.CategoryServiceReference.ICategoryService service = new BestPrice.App.ServiceCommunicator.CategoryServiceReference.CategoryServiceClient();
            return await service.GetCategoryListAsync();
        }
        public async static Task<ObservableCollection<Category>> GetCategoryTestList()
        {
            BestPrice.App.ServiceCommunicator.CategoryServiceReference.ICategoryService service = new BestPrice.App.ServiceCommunicator.CategoryServiceReference.CategoryServiceClient();
            return await service.GetCategoryTestListAsync();
        }
    }
}
